package com.example.model.acl.pojos;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("acl_user")
@ApiModel(value = "acl_user对象",description = "acl用户表")
public class Acl_user implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private String id;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最近更新时间")
    private Date update_time;

    @TableField("salt")
    @ApiModelProperty(value = "盐")
    private String salt;

    @TableField("password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("name")
    @ApiModelProperty(value = "用户名")
    private String name;

    @TableField("note")
    private String note;

    @TableField("fanNum")
    private Integer fanNum;

    @TableField("articleNum")
    private Integer articleNum;

    @TableField("image")
    private String image;

    @TableField(exist = false)
    private boolean isFollowed;

    @TableField("forbid")
    private Integer forbid;
}
